home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / ip / manage / condor / Condor_4.1.3b / src / h / ckpt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-06-17  |  2.8 KB  |  73 lines

  1. /* 
  2. ** Copyright 1986, 1987, 1988, 1989, 1990, 1991 by the Condor Design Team
  3. ** 
  4. ** Permission to use, copy, modify, and distribute this software and its
  5. ** documentation for any purpose and without fee is hereby granted,
  6. ** provided that the above copyright notice appear in all copies and that
  7. ** both that copyright notice and this permission notice appear in
  8. ** supporting documentation, and that the names of the University of
  9. ** Wisconsin and the Condor Design Team not be used in advertising or
  10. ** publicity pertaining to distribution of the software without specific,
  11. ** written prior permission.  The University of Wisconsin and the Condor
  12. ** Design Team make no representations about the suitability of this
  13. ** software for any purpose.  It is provided "as is" without express
  14. ** or implied warranty.
  15. ** 
  16. ** THE UNIVERSITY OF WISCONSIN AND THE CONDOR DESIGN TEAM DISCLAIM ALL
  17. ** WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
  18. ** OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE UNIVERSITY OF
  19. ** WISCONSIN OR THE CONDOR DESIGN TEAM BE LIABLE FOR ANY SPECIAL, INDIRECT
  20. ** OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  21. ** OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  22. ** OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  23. ** OR PERFORMANCE OF THIS SOFTWARE.
  24. ** 
  25. ** Authors:  Allan Bricker and Michael J. Litzkow,
  26. **              University of Wisconsin, Computer Sciences Dept.
  27. ** 
  28. */ 
  29.  
  30.  
  31. #include <a.out.h>
  32.  
  33. #include "ckpt_file.h"
  34. #include "job.h"
  35.  
  36. /*
  37. **    In a checkpoint file, the a_syms field of the exec header
  38. **    points to the checkpoint map.  This map tells the position
  39. **    and length of various structures needed to restart the job.
  40. */
  41. typedef struct {
  42.     int        cs_pos;                /* The position in the checkpoint file       */
  43.     int        cs_len;                /* The length of the segment                 */
  44.     int        cs_fd;                /* The fd to read from (internal to _mkckpt) */
  45. } CKPTSEG;
  46.  
  47.  
  48. #define CM_TEXT        0            /* The checkpoint text segment               */
  49. #define CM_DATA        1            /* The checkpoint data segment               */
  50. #define CM_TRELOC    2            /* The checkpoint text reloc info segment    */
  51. #define CM_DRELOC    3            /* The checkpoint data reloc info segment    */
  52. #define CM_SYMS        4            /* The checkpoint symbol table segment       */
  53. #define CM_STRTAB    5            /* The checkpoint string table segment       */
  54. #define CM_STACK    6            /* The checkpoint stack segment              */
  55.  
  56. #ifdef notdef
  57. #define CM_JOB        7            /* The job structure segment                 */
  58. #define CM_SEGMAP    8            /* The checkpoint map segment                */
  59. #define NCKPTSEGS    9
  60. #else notdef
  61.  
  62. #define NCKPTSEGS    7
  63. #endif notdef
  64.  
  65. typedef struct {
  66.     CKPTSEG    cm_segs[NCKPTSEGS];    /* The map is an array of segments           */
  67. } CKPTMAP;
  68.  
  69. /*
  70. **    Version number for current checkpoint format
  71. */
  72. #define CKPT_VERS        400
  73.